import type { BaseResponse } from "@/api/index.d";
import service from "@/utils/service";

export const useEmployeeCreateApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/person/employee/create`,
    method: "POST",
    data,
  });
};
export const useEmployeeDeleteApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/person/employee/delete`,
    method: "POST",
    data,
  });
};
export const useEmployeeListApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/person/employee/list`,
    method: "POST",
    data,
  });
};
export const useEmployeePageApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/person/employee/page`,
    method: "POST",
    data,
  });
};
export const useEmployeeUpdateApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/person/employee/update`,
    method: "POST",
    data,
  });
};
